<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学习跨域请求</title>
    <script>
        fetch('http://jwtd.net.com/api/advert')
            .then(function(response) {
                return response.json();
            })
            .then(function(myJson) {
                console.log(myJson);
            });
    </script>
</head>
<body>

</body>
</html>                                                                         